.class Lcom/burstly/lib/component/AdaptorListener$3;
.super Ljava/lang/Object;
.source "AdaptorListener.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/burstly/lib/component/AdaptorListener;->failedToLoad(Ljava/lang/String;ZLjava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/burstly/lib/component/AdaptorListener;

.field final synthetic val$causeOfFailure:Ljava/lang/String;

.field final synthetic val$comp:Lcom/burstly/lib/component/AdaptorController;

.field final synthetic val$isInterstitial:Z


# direct methods
.method constructor <init>(Lcom/burstly/lib/component/AdaptorListener;Lcom/burstly/lib/component/AdaptorController;Ljava/lang/String;Z)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 149
    iput-object p1, p0, Lcom/burstly/lib/component/AdaptorListener$3;->this$0:Lcom/burstly/lib/component/AdaptorListener;

    iput-object p2, p0, Lcom/burstly/lib/component/AdaptorListener$3;->val$comp:Lcom/burstly/lib/component/AdaptorController;

    iput-object p3, p0, Lcom/burstly/lib/component/AdaptorListener$3;->val$causeOfFailure:Ljava/lang/String;

    iput-boolean p4, p0, Lcom/burstly/lib/component/AdaptorListener$3;->val$isInterstitial:Z

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method private processingFailedToLoad()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 169
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorListener$3;->this$0:Lcom/burstly/lib/component/AdaptorListener;

    #getter for: Lcom/burstly/lib/component/AdaptorListener;->mShowingFailed:Z
    invoke-static {v0}, Lcom/burstly/lib/component/AdaptorListener;->access$500(Lcom/burstly/lib/component/AdaptorListener;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 170
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorListener$3;->val$causeOfFailure:Ljava/lang/String;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorListener$3;->val$causeOfFailure:Ljava/lang/String;

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 171
    sget-object v0, Lcom/burstly/lib/component/AdaptorListener;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorListener$3;->val$comp:Lcom/burstly/lib/component/AdaptorController;

    iget-object v1, v1, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorListener$3;->val$causeOfFailure:Ljava/lang/String;

    new-array v3, v4, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 173
    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorListener$3;->val$comp:Lcom/burstly/lib/component/AdaptorController;

    iget-boolean v1, p0, Lcom/burstly/lib/component/AdaptorListener$3;->val$isInterstitial:Z

    iput-boolean v1, v0, Lcom/burstly/lib/component/AdaptorController;->mIsInterstitial:Z

    .line 174
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorListener$3;->val$comp:Lcom/burstly/lib/component/AdaptorController;

    invoke-virtual {v0}, Lcom/burstly/lib/component/AdaptorController;->addComponentToFailedCollector()V

    .line 175
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorListener$3;->val$comp:Lcom/burstly/lib/component/AdaptorController;

    invoke-virtual {v0, v4}, Lcom/burstly/lib/component/AdaptorController;->notifyFailed(Z)V

    .line 176
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorListener$3;->this$0:Lcom/burstly/lib/component/AdaptorListener;

    const/4 v1, 0x1

    #setter for: Lcom/burstly/lib/component/AdaptorListener;->mShowingFailed:Z
    invoke-static {v0, v1}, Lcom/burstly/lib/component/AdaptorListener;->access$502(Lcom/burstly/lib/component/AdaptorListener;Z)Z

    .line 180
    :goto_0
    return-void

    .line 178
    :cond_1
    sget-object v0, Lcom/burstly/lib/component/AdaptorListener;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorListener$3;->val$comp:Lcom/burstly/lib/component/AdaptorController;

    iget-object v1, v1, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v2, "Double failed callback, skipped."

    new-array v3, v4, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method


# virtual methods
.method public run()V
    .locals 4

    .prologue
    .line 153
    sget-object v0, Lcom/burstly/lib/component/AdaptorListener;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorListener$3;->val$comp:Lcom/burstly/lib/component/AdaptorController;

    iget-object v1, v1, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v2, "Adaptor failed to load"

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 155
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorListener$3;->this$0:Lcom/burstly/lib/component/AdaptorListener;

    #getter for: Lcom/burstly/lib/component/AdaptorListener;->mTimedOut:Z
    invoke-static {v0}, Lcom/burstly/lib/component/AdaptorListener;->access$000(Lcom/burstly/lib/component/AdaptorListener;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorListener$3;->this$0:Lcom/burstly/lib/component/AdaptorListener;

    #getter for: Lcom/burstly/lib/component/AdaptorListener;->mForceStop:Z
    invoke-static {v0}, Lcom/burstly/lib/component/AdaptorListener;->access$400(Lcom/burstly/lib/component/AdaptorListener;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 156
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorListener$3;->this$0:Lcom/burstly/lib/component/AdaptorListener;

    #calls: Lcom/burstly/lib/component/AdaptorListener;->stopWatching()V
    invoke-static {v0}, Lcom/burstly/lib/component/AdaptorListener;->access$300(Lcom/burstly/lib/component/AdaptorListener;)V

    .line 157
    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorListener$3;->processingFailedToLoad()V

    .line 163
    :cond_0
    :goto_0
    return-void

    .line 160
    :cond_1
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorListener$3;->this$0:Lcom/burstly/lib/component/AdaptorListener;

    #getter for: Lcom/burstly/lib/component/AdaptorListener;->mTimedOut:Z
    invoke-static {v0}, Lcom/burstly/lib/component/AdaptorListener;->access$000(Lcom/burstly/lib/component/AdaptorListener;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 161
    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorListener$3;->processingFailedToLoad()V

    goto :goto_0
.end method
